PRAMADILLO\Woocommerce_Pay_Per_Post_Restrict_Content B

Total Complexity 88
Dependencies 2
Dependents 3
Total lines 455
Lines of code 303
Logical lines of code 180
Comment lines 49
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
show_content()
A
51 10 26
can_user_view_content()
A
54 10 17
check_if_purchased()
A
52 8 22
check_if_has_access()
S
56 5 18
process_status_shortcode()
S
60 5 13
check_if_should_show_paywall()
S
61 5 12
__construct()
S
51 2 29
check_if_user_role_has_access()
S
62 3 11
countdown_refresh()
S
59 2 20
check_if_admin_call()
S
64 3 9
check_if_admin_user_have_access()
S
62 3 10
check_if_is_paid_memberships_pro_member()
S
63 3 10
check_if_is_member()
S
64 3 9
check_if_is_subscriber()
S
64 3 9
shortcode_expiration_status()
S
62 3 10
get_paywall_content()
S
58 2 14
check_if_logged_in()
S
68 2 6
check_if_protected()
S
64 2 9
check_if_post_contains_subscription_products()
S
71 2 5
check_if_post_contains_membership_products()
S
71 2 5
check_if_post_contains_paid_memberships_pro_membership_products()
S
71 2 5
register_shortcodes()
S
79 1 3
set_track_pageview()
S
81 1 3
show_paywall()
S
79 1 3
is_expired()
S
80 1 3
get_current_user_roles()
S
81 1 3
get_time_difference()
S
72 1 5
shortcode_pageview_status()
S
65 1 8
available_status_templates()
S
72 1 6